<?php

namespace app\admin\validate\statistics;

use think\Validate;

class Order extends Validate
{
    /**
     * 验证规则
     */
    protected $rule = [
        'order_no' => 'unique:order',
    ];
    /**
     * 提示消息
     */
    protected $message = [
        'order_no.unique' => '该订单已经存在',
    ];
    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => ['order_no'],
        'edit' => [],
    ];
    
}
